{template 'header'}
<!--主体部分-->
<div class="layout960 fn-clear">
	<!--{*筛选页左侧*}-->
	<div class="auto-filter-left fn-left">
		{template 'part_BrandList','auto'}
	</div>

	<!--筛选页右侧 start-->
	<div class="auto-filter-right fn-right">
		<!--搜索start-->
		{template 'part_KwSearch','auto'}
		<!--搜索 end-->
		<!--当前位置 start-->
		<div class="auto-loc">
			<a href="{SITE_URL}">讯都车网</a>&nbsp;&gt;&nbsp;
			<a href="{url('auto/index')}">车型库</a>&nbsp;&gt;&nbsp;
			<a href="{url('auto/brand', 'brandId='.$brand['arid'])}">{$brand[name]}</a>
			{if $manufactorId}
			&nbsp;&gt;&nbsp;<a href="{url('auto/brand', 'manufactorId='.$manufactorId)}">{$manufactor[name]}</a>
			{/if}
		</div>
		<!--当前位置 end-->
		<!--品牌介绍 start-->
		<div class="auto-brands-intro auto-right-border">
			{if $manufactorId}
				{php $info = $manufactor}
			{else}
				{php $info = $brand}
			{/if}
			<div class="auto-rec-hd fn-clear">
				<h3>{$info[name]}介绍</h3>
			</div>
			<div class="content">
				<img src="{$info[thumb]}" width="55" height="55" />
				<p>{Str::cut($info[description], 300, '...')}<a id="J_brandDetail" href="javascript:void(0);">[详细]</a> </p>
			</div>

		</div>
		<!--品牌介绍 end-->
		{loop $manusAndCars $merchantid $merchant}
		{if $merchantid == 'children'}{php continue;}{/if}
		{if $manufactorId}
		{if $merchantid != $manufactorId}{php continue;}{/if}
		{/if}
		<!--上海大众 start-->
		<div class="auto-rec-list auto-right-border" style="height: auto;">
			<div class="auto-rec-list-hd fn-clear">
                <h3 class="fn-left">{$merchant['name']}</h3>
			</div>
			<div class="auto-rec-list-imgs" style="height: auto;">
				<ul class="fn-clear">
					{loop $manusAndCars[children][$merchantid] $k $car}
					<li>
						<a href="{url('auto/car', 'carid='.$car['arid'])}" target="_blank" title="{$car[name]}"><img src="{Picture::thumb($car[car_thumb], 150, 113)}" width="120" height="80" alt="{$car[name]}" /></a>
						<a href="{url('auto/car', 'carid='.$car['arid'])}" target="_blank" title="{$car[name]}">{$car[name]}</a>
					</li>
					{/loop}
				</ul>
			</div>
		</div>
		<!--上海大众 end-->
		{/loop}
		{if $video}
		<!--汽车视频 start-->
		<div class="auto-video auto-right-border">
			<div class="auto-rec-hd fn-clear">
				<h3>{$brand[name]} - 汽车视频</h3>
			</div>
			<div class="content">
				<ul>
					{loop $video $val}
					<li>
						<a href="{url('video/show', 'itemid='.$val['itemid'])}" target="_blank"><img src="{$val[thumb]}"></a>
					</li>
					{/loop}
				</ul>
			</div>
		</div>
		<!--汽车视频 end-->
		{/if}
        <script>
            seajs.use(['$','easyui','easyui-css'], function($){
                $("#J_brandDetail").click(function(){
                    $("#J_brandIntro").dialog('open');
                });
            })
        </script>
		<div id="J_brandIntro" title="{$info[name]}介绍" class="easyui-dialog" style="padding:10px;height: 500px;overflow-y: auto;" data-options="closed:'true',width:750,height:350,modal:'true'">
			{$info[description]}
		</div>
	{template 'footer', 'auto'}
	<!--主体部分 end-->